package com.yuzhenxin.coursesystem.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;

@Getter
@Setter
@Schema(title = "教师设置")
@TableName("teacher")
@Builder
public class TeacherDO extends BaseDO {

    @Id
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(title = "教师编号")
    @TableField("number")
    @ExcelProperty(value = "教师编号", index = 0)
    private Integer number;

    @Schema(title = "教师密码")
    @TableField("password")
    @ExcelProperty(value = "教师密码", index = 1)
    private String password;

    @Schema(title = "教师姓名")
    @TableField("name")
    @ExcelProperty(value = "教师姓名", index = 2)
    private String name;

    @Schema(title = "教师性别")
    @TableField("sex")
    @ExcelProperty(value = "教师性别", index = 3)
    private String sex;

    @Schema(title = "教师年龄")
    @TableField("age")
    @ExcelProperty(value = "教师年龄", index = 4)
    private Integer age;

    @Schema(title = "教师职称")
    @TableField("professional_title")
    @ExcelProperty(value = "教师职称", index = 5)
    private String professionalTitle;

}
